$(function(){

  loadOrderList();

});

//加载订单列表
function loadOrderList()
{
	document.title = '订单记录';
	
	var userId =  getQueryStr('id');
	
	var parms = {
  		tplId : "orderRecordListTpl",
  		contentId: "itemsList",
  		url : "/dingding-web/userMallAction!getCommodityOrderList.action",
  		data : {userId:userId},
  		afterLoad : function(data){
  			if(data.responseBody == undefined)
  			{
  				$(".tip-none-order").css("display","block");
  			}
  		}
	};
	juicerTpl(parms);
}

//打开订单详情
function onOrderDetail(userId){
	window.location.href = "/dingding-web/shop/recorddetail.html?commodityId=" + userId;
}
